%main#post-show
  = render 'layouts/navbar'
  .ui.two.column.centered.grid{style:'margin-top: 5rem'}
    .column
      .ui.piled.segment
        %h2.ui.header
          = @post.title
        .ui.horizontal.list
          .item
            = image_tag User.find(@post.user_id).avatar.url,:class => 'ui avatar image'
            %span
              = User.find(@post.user_id).name
          .item
            发表于:
            = format_time(@post.created_at)
            &nbsp
            #{@post.visited_count}次阅读
        #post-content
          = @post.content.html_safe